package cn.gogpay.dcb.api.entity;

import cn.gogpay.dcb.h5base.entity.BaseEntity;
import com.alibaba.fastjson.JSON;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.MappedSuperclass;

/**
 * 二维码拉取记录
 *
 * @author huangting@gogpay.cn
 * @date 2020/1/7 19:18
 */
@Entity
@EntityListeners(AuditingEntityListener.class)
public class NotifyQrCodeRecord extends BaseEntity {
    @Column(columnDefinition = "varchar(64) comment '卡号'")
    private String cardNo;
    @Column(columnDefinition = "varchar(64) comment '电话'")
    private String phone;
    @Column(columnDefinition = "varchar(64) comment '请求时间 时间戳'")
    private String pullTime;
    @Column(columnDefinition = "varchar(64) comment '请求时间'")
    private String pullDate;
    @Column(columnDefinition = "varchar(64) comment '返回结果 00 刷卡成功 01 刷卡失败'")
    private String result;
    @Column(columnDefinition = "varchar(64) comment '流水号'")
    private String requestNumber;
    @Column(columnDefinition = "varchar(64) comment '验签串'")
    private String sign;

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }

    public String getPullDate() {
        return pullDate;
    }

    public void setPullDate(String pullDate) {
        this.pullDate = pullDate;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPullTime() {
        return pullTime;
    }

    public void setPullTime(String pullTime) {
        this.pullTime = pullTime;
    }

    public String getRequestNumber() {
        return requestNumber;
    }

    public void setRequestNumber(String requestNumber) {
        this.requestNumber = requestNumber;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }
}
